import request from '@/utils/request'
// demo-列表
export function getList() {
  return request({
    url: 'demo/list',
    method: 'get'
  })
}
// demo-详情
export function getDetail(id) {
  return request({
    url: 'demo/detail?id=' + id,
    method: 'get'
  })
}
// demo-增加
export function add(data) {
  return request({
    url: 'demo',
    method: 'post',
    data
  })
}
// demo-删
export function del(ids) {
  return request({
    url: 'demo',
    method: 'delete',
    data: ids
  })
}
// demo-改
export function edit(data) {
  return request({
    url: 'demo',
    method: 'put',
    data
  })
}

export default { getList, getDetail, add, edit, del }
